home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000824-20010305 / 000075_news@columbia.edu _Mon Oct 16 22:16:26 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  7KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by fozimane.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id WAA07014
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Mon, 16 Oct 2000 22:13:03 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id WAA26290
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 16 Oct 2000 22:09:45 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id VAA14433
  10.     for kermit.misc@watsun.cc.columbia.edu; Mon, 16 Oct 2000 21:46:35 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: "Steve" <steve@baus-systems.com>
  13. Subject: Re: No Carrier
  14. Message-ID: <3bOG5.57125$bI6.1974759@news1.giganews.com>
  15. Organization: Giganews.Com - Premium News Outsourcing
  16. Date: Tue, 17 Oct 2000 01:45:36 GMT
  17. To: kermit.misc@columbia.edu
  18.  
  19. Sounds like we need to rethink the plan of attack here...
  20.  
  21. In the short term, is there any easy way around the No Carrier when we send
  22. a Finish from the client?  A setting on the host or a modem initialization
  23. setting on the client?  I cant see where putting multiple servers in the
  24. host script is going to work.
  25.  
  26. Thanks,
  27. Steve
  28.  
  29. Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote in message
  30. news:8sfp3o$14n$1@newsmaster.cc.columbia.edu...
  31. > In article <%ZHG5.54658$bI6.1914001@news1.giganews.com>,
  32. > Steve <steve@baus-systems.com> wrote:
  33. > : We currently have DOS clients that on a regular basis, communicate with
  34. a
  35. > : host PC to exchange files.  The clients and the host are running DOS
  36. apps
  37. > : that call Kermit 3.15.  We would like to upgrade the host to K95 to
  38. allow
  39. > : for multiple transfers at one time on one PC.
  40. > :
  41. > : Here is what we are doing:
  42. > : The host waits in server mode for a client to connect.  The clients
  43. connects
  44. > : either through a serial cable or modem...
  45. > :
  46. > So then you need one serial port for each simultaneous session.  As you
  47. know,
  48. > PCs are not easily able to accommodate more than two serial ports, due to
  49. > the severe shortage of available IRQs in the PC architecture.  Any serial
  50. > ports beyond two are likely to introduce interrupt conflicts.
  51. >
  52. > : ... and sends across a file that contains
  53. > : a field that tells the host which client this is then the client sends a
  54. > : Finish command to kick the host out of server mode.  The host opens the
  55. file
  56. > : to get the client ID then changes to a directory containing files
  57. specific
  58. > : to that client that are waiting to go to the client, compresses the
  59. files
  60. > : and sends across the compressed file.  The host then goes into server
  61. mode
  62. > : waiting for the clients compressed data file.  After the client sends
  63. the
  64. > : file it sends a Finish command and the host uncompresses the file and
  65. > : processes the data, copying files contained within the compressed data
  66. file
  67. > : to the appropriate places.  The host then goes back into server mode
  68. waiting
  69. > : for the next client.
  70. > :
  71. > All this switching into and out of server mode sounds pretty tricky to me.
  72. > How do the two sides stay synchronized?  Wouldn't it be better to keep the
  73. > host in server mode and drive everything from the client script?
  74. >
  75. > For example, make the client ID correspond to a directory on the host.
  76. > Then the client script could:
  77. >
  78. >  . CD to its own host directory.
  79. >
  80. >  . Does a GET command for the files that are waiting.  Note that both
  81. >    K95 and MS-DOS Kermit 3.15 have a RETRIEVE command, which means
  82. >    "send me the specified files, and then delete each one if and only
  83. >    if it is sent successfully" (in K95, this is equivalent to GET
  84. /DELETE).
  85. >    This feature is designed for exactly your kind of application.  For
  86. >    more discussion of "atomic file movement", see:
  87. >
  88. >      http://www.columbia.edu/kermit/case10.html
  89. >
  90. >  . I would guess that the compression step can probably be skipped, since
  91. >    the modems take care of that transparently.  In those cases where you
  92. >    might not have a data-compressing modem connection, the improved
  93. >    simplicity might be worth the tradeoff.  Conversely, you have have the
  94. >    client script obtain send "remote host zip" or similar commands.
  95. >
  96. >  . Now the client sends back its files and sends FINISH, and hangs up its
  97. >    connection.
  98. >
  99. > This makes the server end quite simple.
  100. >
  101. > : One other important part is from time to time a phone
  102. > : line can go bad in the middle of a transfer and therefore for example
  103. the
  104. > : host may be waiting for the clients compress data file while a new
  105. client
  106. > : may be connecting and sending the client ID file.
  107. > :
  108. > This, of course, points up the dangers of using a DOS/Windows server,
  109. which
  110. > has no notion of separate user identities or authentication.  You would
  111. solve
  112. > an awful lot of programs by using some form of Unix (such as Linux or SCO)
  113. > on the server.  This gets you user IDs, file protection and permissions,
  114. and
  115. > all the rest automatically, not to mention the natural ability of the
  116. Kermit
  117. > server to run subprocesses without hanging.
  118. >
  119. > : We refer to this as the
  120. > : client and the host being out of synch.  To resolve this, when the
  121. client
  122. > : first connects, it sends 2 Finish commands which 100% guarantees that
  123. the
  124. > : host will be at the "waiting for client ID" section of the host app as
  125. that
  126. > : part of code on the host looks something like:
  127. > : Do While True
  128. > :  Kermit server
  129. > :  If File(ClientID)
  130. > :   Exit Do
  131. > :  End If
  132. > : End Do
  133. > :
  134. > : We would like to upgrade the host app to K95 and have a VB app that
  135. seems to
  136. > : work fine except for communicating over the modem.  When we send the
  137. Finish
  138. > : from the client, it drops the line and we get No Carrier on the client.
  139. If
  140. > : we could get around this, that should solve our issue.  I am not sure
  141. > : changing the software on the client is a realistic option as updating
  142. the
  143. > : clients is a major hassle.
  144. > :
  145. > Still, it might be worth it.  The current scheme has too many
  146. vulnerabilities,
  147. > both procedural and security-related.
  148. >
  149. > : We can change the modem initialization string on the clients so that is
  150. an
  151. > : option.
  152. > :
  153. > : Any thoughts?
  154. > :
  155. > It's up to you.  If you can't change the client scripts, then you'll need
  156. > to make the server script take every possibility into account.  If you
  157. want
  158. > to continue with your current scenario, Jeff already made the suggestions
  159. > you need -- remove the EXIT command from your script, and have the script
  160. > loop back and wait for another call.  Or put two SERVER commands in a row.
  161. > Whatever you need to do, the scripting language will allow -- you just
  162. need
  163. > to think through all the possibilities.
  164. >
  165. > Another possibility is to simply run K95 host mode on server:
  166. >
  167. >   http://www.columbia.edu/kermit/k95host.html
  168. >
  169. > In that case, the client script has to log in and negotiate the menus, but
  170. > that's not too difficult, and then at least you have some measure of
  171. > authentication and file protection.
  172. >
  173. > - Frank
  174.  
  175.